<?php
    //select: hanh vi mac dinh
    include ($_SERVER["DOCUMENT_ROOT"]."/CTAN/models/Show.php");
    $buoibieudien=new buoibieudien();
    $result = $buoibieudien->danhSachBuoiDien();
    //$danhsachnhom;
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    //ma_buoi_dien, ten_buoi_dien, dia_diem, chi_tiet_them, thoi_gian_bat_dau, thoi_gian_dien, ngay_dien, ve_da_ban
    $danhsachbuoidien[] = array(
        'ma_buoi_dien' => $row['ma_buoi_dien'],
        'ten_buoi_dien' => $row['ten_buoi_dien'],
        'dia_diem' => $row['dia_diem'],
        'chi_tiet_them' => $row['chi_tiet_them'],
        'thoi_gian_bat_dau' => $row['thoi_gian_bat_dau'],
        'thoi_gian_dien' => $row['thoi_gian_dien'],
        'ngay_dien' => $row['ngay_dien'],
        've_da_ban' => $row['ve_da_ban']
    );
    }
    echo json_encode($danhsachbuoidien, JSON_UNESCAPED_UNICODE);
?>
